VectorScript also provides support in its string API for handling the extended strings in CHAR arrays. Operations such as obtaining string length, substring position, and string concatenation can be performed on
CHAR arrays just as they can on
STRING values.
To use CHAR arrays with string API functions, just use the
CHAR array in place of a
STRING variable for a given function parameter or return value. For example:
In the example, a CHAR array is used in place of a
STRING as the source value for the
Copy() function. The result of the
Copy() operation is then assigned to a
STRING variable. String API function calls support both static and dynamic
CHAR arrays.